package com.example.novelsys.service;

import com.example.novelsys.dao.RatesDao;
import com.example.novelsys.entity.Rates;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RatesService {
	@Autowired
	RatesDao ratesDao;
	
    //根据小说id查询该篇小说的评论们
	 public List<Rates> queryByNovelId(Integer novelId){
		 return ratesDao.queryByNovelId(novelId);
	 }
}
